/*
 * An XML document type.
 * Localname: LinkLossEvent
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one LinkLossEvent(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class LinkLossEventDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument
{
    
    public LinkLossEventDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LINKLOSSEVENT$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "LinkLossEvent");
    
    
    /**
     * Gets the "LinkLossEvent" element
     */
    public cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent getLinkLossEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent target = null;
            target = (cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent)get_store().find_element_user(LINKLOSSEVENT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "LinkLossEvent" element
     */
    public void setLinkLossEvent(cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent linkLossEvent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent target = null;
            target = (cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent)get_store().find_element_user(LINKLOSSEVENT$0, 0);
            if (target == null)
            {
                target = (cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent)get_store().add_element_user(LINKLOSSEVENT$0);
            }
            target.set(linkLossEvent);
        }
    }
    
    /**
     * Appends and returns a new empty "LinkLossEvent" element
     */
    public cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent addNewLinkLossEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent target = null;
            target = (cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent)get_store().add_element_user(LINKLOSSEVENT$0);
            return target;
        }
    }
    /**
     * An XML LinkLossEvent(@http://www.hpsearch.org/schemas/2006/05/BSA).
     *
     * This is a complex type.
     */
    public static class LinkLossEventImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.LinkLossEventDocument.LinkLossEvent
    {
        
        public LinkLossEventImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName LINKID$0 = 
            new javax.xml.namespace.QName("", "linkId");
        
        
        /**
         * Gets the "linkId" element
         */
        public java.lang.String getLinkId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "linkId" element
         */
        public org.apache.xmlbeans.XmlString xgetLinkId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "linkId" element
         */
        public void setLinkId(java.lang.String linkId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINKID$0);
                }
                target.setStringValue(linkId);
            }
        }
        
        /**
         * Sets (as xml) the "linkId" element
         */
        public void xsetLinkId(org.apache.xmlbeans.XmlString linkId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LINKID$0);
                }
                target.set(linkId);
            }
        }
    }
}
